package com.ls.task.dal.form;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ls.fw.data.annotation.bean.UpdateValidate;
import com.ls.fw.data.converter.CustomDateSerializer;
import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.NotNull;
import org.springframework.format.annotation.DateTimeFormat;

public class SysTaskFireForm implements Serializable {
    /**
     * ID
     */
    @NotNull(groups={UpdateValidate.class})
    private Long id;

    /**
     * 上级
     */
    private Long triggerId;

    /**
     * 修改人
     */
    private String modUser;

    /**
     * 修改人ID
     */
    private Long modUserId;

    /**
     * 修改时间
     */
    private Date modDt;

    /**
     * 创建人
     */
    private String createUser;

    /**
     * 创建人ID
     */
    private Long createUserId;

    /**
     * 创建时间
     */
    private Date createDt;

    /**
     * 删除区分
     */
    private Boolean deleteClass;

    /**
     * 有效区分
     */
    private Boolean validClass;

    /**
     * 备注
     */
    private String remark;

    private Date updateTs;

    /**
     * 时间戳
     */
    private Date insertTs;

    /**
     * 是否能更新
     */
    private Boolean canUpdate;

    /**
     * 是否能删除
     */
    private Boolean canDelete;

    /**
     * 实际执行时间
     */
    private Date fireDt;

    /**
     * 前一次实际执行时间
     */
    private Date previousDt;

    /**
     * 下一次该执行时间
     */
    private Date nextDt;

    /**
     * 请求参数
     */
    private String requestInfo;

    /**
     * 调用服务IP
     */
    private String ip;

    /**
     * 调用服务标识
     */
    private String serverFlag;

    private Long taskId;

    /**
     * 计划执行时间
     */
    private Date scheduledFireDt;

    /**
     * 运行时间（毫秒）
     */
    private Long runTime;

    /**
     * 状态code
     */
    private String statusCode;

    /**
     * 状态
     */
    private String statusName;

    /**
     * 执行时间
     */
    private Date doDt;

    /**
     * 完成时间
     */
    private Date completeDt;

    /**
     * 结果
     */
    private String responseInfo;

    private static final long serialVersionUID = 1L;

    /**
     * 获取ID
     *
     * @return id - ID
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置ID
     *
     * @param id ID
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取上级
     *
     * @return trigger_id - 上级
     */
    public Long getTriggerId() {
        return triggerId;
    }

    /**
     * 设置上级
     *
     * @param triggerId 上级
     */
    public void setTriggerId(Long triggerId) {
        this.triggerId = triggerId;
    }

    /**
     * 获取修改人
     *
     * @return mod_user - 修改人
     */
    public String getModUser() {
        return modUser;
    }

    /**
     * 设置修改人
     *
     * @param modUser 修改人
     */
    public void setModUser(String modUser) {
        this.modUser = modUser == null ? null : modUser.trim();
    }

    /**
     * 获取修改人ID
     *
     * @return mod_user_id - 修改人ID
     */
    public Long getModUserId() {
        return modUserId;
    }

    /**
     * 设置修改人ID
     *
     * @param modUserId 修改人ID
     */
    public void setModUserId(Long modUserId) {
        this.modUserId = modUserId;
    }

    /**
     * 获取修改时间
     *
     * @return mod_dt - 修改时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonSerialize(using=CustomDateSerializer.class)
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    public Date getModDt() {
        return modDt;
    }

    /**
     * 设置修改时间
     *
     * @param modDt 修改时间
     */
    public void setModDt(Date modDt) {
        this.modDt = modDt;
    }

    /**
     * 获取创建人
     *
     * @return create_user - 创建人
     */
    public String getCreateUser() {
        return createUser;
    }

    /**
     * 设置创建人
     *
     * @param createUser 创建人
     */
    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    /**
     * 获取创建人ID
     *
     * @return create_user_id - 创建人ID
     */
    public Long getCreateUserId() {
        return createUserId;
    }

    /**
     * 设置创建人ID
     *
     * @param createUserId 创建人ID
     */
    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    /**
     * 获取创建时间
     *
     * @return create_dt - 创建时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonSerialize(using=CustomDateSerializer.class)
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    public Date getCreateDt() {
        return createDt;
    }

    /**
     * 设置创建时间
     *
     * @param createDt 创建时间
     */
    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    /**
     * 获取删除区分
     *
     * @return delete_class - 删除区分
     */
    public Boolean getDeleteClass() {
        return deleteClass;
    }

    /**
     * 设置删除区分
     *
     * @param deleteClass 删除区分
     */
    public void setDeleteClass(Boolean deleteClass) {
        this.deleteClass = deleteClass;
    }

    /**
     * 获取有效区分
     *
     * @return valid_class - 有效区分
     */
    public Boolean getValidClass() {
        return validClass;
    }

    /**
     * 设置有效区分
     *
     * @param validClass 有效区分
     */
    public void setValidClass(Boolean validClass) {
        this.validClass = validClass;
    }

    /**
     * 获取备注
     *
     * @return remark - 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 设置备注
     *
     * @param remark 备注
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    /**
     * @return update_ts
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonSerialize(using=CustomDateSerializer.class)
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    public Date getUpdateTs() {
        return updateTs;
    }

    /**
     * @param updateTs
     */
    public void setUpdateTs(Date updateTs) {
        this.updateTs = updateTs;
    }

    /**
     * 获取时间戳
     *
     * @return insert_ts - 时间戳
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonSerialize(using=CustomDateSerializer.class)
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    public Date getInsertTs() {
        return insertTs;
    }

    /**
     * 设置时间戳
     *
     * @param insertTs 时间戳
     */
    public void setInsertTs(Date insertTs) {
        this.insertTs = insertTs;
    }

    /**
     * 获取是否能更新
     *
     * @return can_update - 是否能更新
     */
    public Boolean getCanUpdate() {
        return canUpdate;
    }

    /**
     * 设置是否能更新
     *
     * @param canUpdate 是否能更新
     */
    public void setCanUpdate(Boolean canUpdate) {
        this.canUpdate = canUpdate;
    }

    /**
     * 获取是否能删除
     *
     * @return can_delete - 是否能删除
     */
    public Boolean getCanDelete() {
        return canDelete;
    }

    /**
     * 设置是否能删除
     *
     * @param canDelete 是否能删除
     */
    public void setCanDelete(Boolean canDelete) {
        this.canDelete = canDelete;
    }

    /**
     * 获取实际执行时间
     *
     * @return fire_dt - 实际执行时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonSerialize(using=CustomDateSerializer.class)
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    public Date getFireDt() {
        return fireDt;
    }

    /**
     * 设置实际执行时间
     *
     * @param fireDt 实际执行时间
     */
    public void setFireDt(Date fireDt) {
        this.fireDt = fireDt;
    }

    /**
     * 获取前一次实际执行时间
     *
     * @return previous_dt - 前一次实际执行时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonSerialize(using=CustomDateSerializer.class)
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    public Date getPreviousDt() {
        return previousDt;
    }

    /**
     * 设置前一次实际执行时间
     *
     * @param previousDt 前一次实际执行时间
     */
    public void setPreviousDt(Date previousDt) {
        this.previousDt = previousDt;
    }

    /**
     * 获取下一次该执行时间
     *
     * @return next_dt - 下一次该执行时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonSerialize(using=CustomDateSerializer.class)
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    public Date getNextDt() {
        return nextDt;
    }

    /**
     * 设置下一次该执行时间
     *
     * @param nextDt 下一次该执行时间
     */
    public void setNextDt(Date nextDt) {
        this.nextDt = nextDt;
    }

    /**
     * 获取请求参数
     *
     * @return request_info - 请求参数
     */
    public String getRequestInfo() {
        return requestInfo;
    }

    /**
     * 设置请求参数
     *
     * @param requestInfo 请求参数
     */
    public void setRequestInfo(String requestInfo) {
        this.requestInfo = requestInfo == null ? null : requestInfo.trim();
    }

    /**
     * 获取调用服务IP
     *
     * @return ip - 调用服务IP
     */
    public String getIp() {
        return ip;
    }

    /**
     * 设置调用服务IP
     *
     * @param ip 调用服务IP
     */
    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    /**
     * 获取调用服务标识
     *
     * @return server_flag - 调用服务标识
     */
    public String getServerFlag() {
        return serverFlag;
    }

    /**
     * 设置调用服务标识
     *
     * @param serverFlag 调用服务标识
     */
    public void setServerFlag(String serverFlag) {
        this.serverFlag = serverFlag == null ? null : serverFlag.trim();
    }

    /**
     * @return task_id
     */
    public Long getTaskId() {
        return taskId;
    }

    /**
     * @param taskId
     */
    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    /**
     * 获取计划执行时间
     *
     * @return scheduled_fire_dt - 计划执行时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonSerialize(using=CustomDateSerializer.class)
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    public Date getScheduledFireDt() {
        return scheduledFireDt;
    }

    /**
     * 设置计划执行时间
     *
     * @param scheduledFireDt 计划执行时间
     */
    public void setScheduledFireDt(Date scheduledFireDt) {
        this.scheduledFireDt = scheduledFireDt;
    }

    /**
     * 获取运行时间（毫秒）
     *
     * @return run_time - 运行时间（毫秒）
     */
    public Long getRunTime() {
        return runTime;
    }

    /**
     * 设置运行时间（毫秒）
     *
     * @param runTime 运行时间（毫秒）
     */
    public void setRunTime(Long runTime) {
        this.runTime = runTime;
    }

    /**
     * 获取状态code
     *
     * @return status_code - 状态code
     */
    public String getStatusCode() {
        return statusCode;
    }

    /**
     * 设置状态code
     *
     * @param statusCode 状态code
     */
    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode == null ? null : statusCode.trim();
    }

    /**
     * 获取状态
     *
     * @return status_name - 状态
     */
    public String getStatusName() {
        return statusName;
    }

    /**
     * 设置状态
     *
     * @param statusName 状态
     */
    public void setStatusName(String statusName) {
        this.statusName = statusName == null ? null : statusName.trim();
    }

    /**
     * 获取执行时间
     *
     * @return do_dt - 执行时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonSerialize(using=CustomDateSerializer.class)
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    public Date getDoDt() {
        return doDt;
    }

    /**
     * 设置执行时间
     *
     * @param doDt 执行时间
     */
    public void setDoDt(Date doDt) {
        this.doDt = doDt;
    }

    /**
     * 获取完成时间
     *
     * @return complete_dt - 完成时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonSerialize(using=CustomDateSerializer.class)
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    public Date getCompleteDt() {
        return completeDt;
    }

    /**
     * 设置完成时间
     *
     * @param completeDt 完成时间
     */
    public void setCompleteDt(Date completeDt) {
        this.completeDt = completeDt;
    }

    /**
     * 获取结果
     *
     * @return response_info - 结果
     */
    public String getResponseInfo() {
        return responseInfo;
    }

    /**
     * 设置结果
     *
     * @param responseInfo 结果
     */
    public void setResponseInfo(String responseInfo) {
        this.responseInfo = responseInfo == null ? null : responseInfo.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysTaskFireForm other = (SysTaskFireForm) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTriggerId() == null ? other.getTriggerId() == null : this.getTriggerId().equals(other.getTriggerId()))
            && (this.getModUser() == null ? other.getModUser() == null : this.getModUser().equals(other.getModUser()))
            && (this.getModUserId() == null ? other.getModUserId() == null : this.getModUserId().equals(other.getModUserId()))
            && (this.getModDt() == null ? other.getModDt() == null : this.getModDt().equals(other.getModDt()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getCreateUserId() == null ? other.getCreateUserId() == null : this.getCreateUserId().equals(other.getCreateUserId()))
            && (this.getCreateDt() == null ? other.getCreateDt() == null : this.getCreateDt().equals(other.getCreateDt()))
            && (this.getDeleteClass() == null ? other.getDeleteClass() == null : this.getDeleteClass().equals(other.getDeleteClass()))
            && (this.getValidClass() == null ? other.getValidClass() == null : this.getValidClass().equals(other.getValidClass()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getUpdateTs() == null ? other.getUpdateTs() == null : this.getUpdateTs().equals(other.getUpdateTs()))
            && (this.getInsertTs() == null ? other.getInsertTs() == null : this.getInsertTs().equals(other.getInsertTs()))
            && (this.getCanUpdate() == null ? other.getCanUpdate() == null : this.getCanUpdate().equals(other.getCanUpdate()))
            && (this.getCanDelete() == null ? other.getCanDelete() == null : this.getCanDelete().equals(other.getCanDelete()))
            && (this.getFireDt() == null ? other.getFireDt() == null : this.getFireDt().equals(other.getFireDt()))
            && (this.getPreviousDt() == null ? other.getPreviousDt() == null : this.getPreviousDt().equals(other.getPreviousDt()))
            && (this.getNextDt() == null ? other.getNextDt() == null : this.getNextDt().equals(other.getNextDt()))
            && (this.getRequestInfo() == null ? other.getRequestInfo() == null : this.getRequestInfo().equals(other.getRequestInfo()))
            && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()))
            && (this.getServerFlag() == null ? other.getServerFlag() == null : this.getServerFlag().equals(other.getServerFlag()))
            && (this.getTaskId() == null ? other.getTaskId() == null : this.getTaskId().equals(other.getTaskId()))
            && (this.getScheduledFireDt() == null ? other.getScheduledFireDt() == null : this.getScheduledFireDt().equals(other.getScheduledFireDt()))
            && (this.getRunTime() == null ? other.getRunTime() == null : this.getRunTime().equals(other.getRunTime()))
            && (this.getStatusCode() == null ? other.getStatusCode() == null : this.getStatusCode().equals(other.getStatusCode()))
            && (this.getStatusName() == null ? other.getStatusName() == null : this.getStatusName().equals(other.getStatusName()))
            && (this.getDoDt() == null ? other.getDoDt() == null : this.getDoDt().equals(other.getDoDt()))
            && (this.getCompleteDt() == null ? other.getCompleteDt() == null : this.getCompleteDt().equals(other.getCompleteDt()))
            && (this.getResponseInfo() == null ? other.getResponseInfo() == null : this.getResponseInfo().equals(other.getResponseInfo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTriggerId() == null) ? 0 : getTriggerId().hashCode());
        result = prime * result + ((getModUser() == null) ? 0 : getModUser().hashCode());
        result = prime * result + ((getModUserId() == null) ? 0 : getModUserId().hashCode());
        result = prime * result + ((getModDt() == null) ? 0 : getModDt().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getCreateUserId() == null) ? 0 : getCreateUserId().hashCode());
        result = prime * result + ((getCreateDt() == null) ? 0 : getCreateDt().hashCode());
        result = prime * result + ((getDeleteClass() == null) ? 0 : getDeleteClass().hashCode());
        result = prime * result + ((getValidClass() == null) ? 0 : getValidClass().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getUpdateTs() == null) ? 0 : getUpdateTs().hashCode());
        result = prime * result + ((getInsertTs() == null) ? 0 : getInsertTs().hashCode());
        result = prime * result + ((getCanUpdate() == null) ? 0 : getCanUpdate().hashCode());
        result = prime * result + ((getCanDelete() == null) ? 0 : getCanDelete().hashCode());
        result = prime * result + ((getFireDt() == null) ? 0 : getFireDt().hashCode());
        result = prime * result + ((getPreviousDt() == null) ? 0 : getPreviousDt().hashCode());
        result = prime * result + ((getNextDt() == null) ? 0 : getNextDt().hashCode());
        result = prime * result + ((getRequestInfo() == null) ? 0 : getRequestInfo().hashCode());
        result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode());
        result = prime * result + ((getServerFlag() == null) ? 0 : getServerFlag().hashCode());
        result = prime * result + ((getTaskId() == null) ? 0 : getTaskId().hashCode());
        result = prime * result + ((getScheduledFireDt() == null) ? 0 : getScheduledFireDt().hashCode());
        result = prime * result + ((getRunTime() == null) ? 0 : getRunTime().hashCode());
        result = prime * result + ((getStatusCode() == null) ? 0 : getStatusCode().hashCode());
        result = prime * result + ((getStatusName() == null) ? 0 : getStatusName().hashCode());
        result = prime * result + ((getDoDt() == null) ? 0 : getDoDt().hashCode());
        result = prime * result + ((getCompleteDt() == null) ? 0 : getCompleteDt().hashCode());
        result = prime * result + ((getResponseInfo() == null) ? 0 : getResponseInfo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(","+super.toString());
        sb.append(", id=").append(id);
        sb.append(", triggerId=").append(triggerId);
        sb.append(", modUser=").append(modUser);
        sb.append(", modUserId=").append(modUserId);
        sb.append(", modDt=").append(modDt);
        sb.append(", createUser=").append(createUser);
        sb.append(", createUserId=").append(createUserId);
        sb.append(", createDt=").append(createDt);
        sb.append(", deleteClass=").append(deleteClass);
        sb.append(", validClass=").append(validClass);
        sb.append(", remark=").append(remark);
        sb.append(", updateTs=").append(updateTs);
        sb.append(", insertTs=").append(insertTs);
        sb.append(", canUpdate=").append(canUpdate);
        sb.append(", canDelete=").append(canDelete);
        sb.append(", fireDt=").append(fireDt);
        sb.append(", previousDt=").append(previousDt);
        sb.append(", nextDt=").append(nextDt);
        sb.append(", requestInfo=").append(requestInfo);
        sb.append(", ip=").append(ip);
        sb.append(", serverFlag=").append(serverFlag);
        sb.append(", taskId=").append(taskId);
        sb.append(", scheduledFireDt=").append(scheduledFireDt);
        sb.append(", runTime=").append(runTime);
        sb.append(", statusCode=").append(statusCode);
        sb.append(", statusName=").append(statusName);
        sb.append(", doDt=").append(doDt);
        sb.append(", completeDt=").append(completeDt);
        sb.append(", responseInfo=").append(responseInfo);
        sb.append("]");
        return sb.toString();
    }
}